package com.zzyl.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.zzyl.dto.LoginDto;
import com.zzyl.mapper.LoginMapper;
import com.zzyl.service.LoginService;
import com.zzyl.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;


    /**
     * 账号登录界面接口
     *
     * @param loginDto 登录信息
     * @return
     */
    @Override
    public LoginVo login(LoginDto loginDto) {
        LoginVo loginVo = loginMapper.login(loginDto);
        return loginVo;
    }
}
